package com.appspot.moviesessions.provider;

import android.net.Uri;

public interface UriMapping {

	/* TODO move the uri to here too and let UriMapping get it from here */
	public enum Match {
		MOVIE_DIRECTORY(MovieSession.MOVIE_DIR_PATH, MovieSession.Movie.TABLE), MOVIE(
				MovieSession.MOVIE_PATH, MovieSession.Movie.TABLE), LOCATION_DIRECTORY(
				MovieSession.LOCATION_DIR_PATH, MovieSession.Location.TABLE);

		private String table;
		private String path;

		private Match(String path, String table) {
			this.table = table;
			this.path = path;
		}

		public String getTable() {
			return table;
		}

		public String getPath() {
			return path;
		}

	}

	Match match(Uri uri);

	long parseId(Uri uri);

}
